<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://xmlns.jcp.org/jsf/passthrough">
        
    <h:head>
    <link rel="stylesheet" type="text/css" media="screen" href="resources/css/style.css" />
    <title>Add a model</title>
    </h:head>
    
    <body>
    <div class="telo">
    
    <!-- HLAVICKA -->
    <div class="hlavicka">
    	<h1><span>PrintBee 3D</span></h1>
    	<div class="menu">
    		<ul>
    			<li><a href="index.xhtml" class="modelList">Model list</a></li>
    			<li><a href="#" class="printQueue">Print queue</a></li>
    			<li><a href="#" class="logOut">Log out</a></li>
    		</ul>
    		<ul>
    			<li><a href="manageUsers.xhtml" class="users">Users</a></li>
    			<li><a href="#" class="notifications">Notifications</a></li>
    			<li><a href="#" class="colors">Colors</a></li>
    		</ul>
    	</div>
    </div>
    
    <!-- NABIDKA SUBMENU -->
    <div class="nabidka" id="modelList">
    	<h2>Add new model</h2>
        <div class="submenu">
        	<a href="index.xhtml">Main page</a> / <a href="index.xhtml">Model list</a> / <a href="#">Add a model</a>
        </div>
    </div>
    
    <!-- OBSAH STRANKY -->
    <div class="obsah">
           <h:form enctype="multipart/form-data" id="reg_form_inputs">
            <p></p>
            <p><h:inputText p:placeholder="Name..." styleClass="form_text_input" required="true" requiredMessage="Name not filled !!" id="add_model_name" value="#{AddModelForm.modelName}" /></p>
            <p></p>
            <p><h:inputText p:placeholder="Color..." styleClass="form_text_input" required="true" requiredMessage="Color not filled !!" id="add_model_color" value="#{AddModelForm.color}" /></p>
            <p></p>
            <p><h:inputText p:placeholder="Density..." styleClass="form_text_input" required="true" requiredMessage="Scale not filled !!" id="add_model_scale" value="#{AddModelForm.scale}" /></p>
            <p></p>
            <p><h:inputFile styleClass="form_text_input_upload" required="true" requiredMessage="File not selected !!" id="add_model_data" label="file" value="#{AddModelForm.modelData}"></h:inputFile></p>
            <p></p>
            <h:commandButton styleClass="form_text_input" style="text-indent: 0; background: #779324;" id="add_model_button" value="Add !" action="#{AddModelForm.sendForm()}"/>
        </h:form>
    
    </div>
        
    <!-- PATICKA -->
    <div class="footer">
    	&copy; Mendelova univerzita 2015
    </div>
    
    </div>
    </body>
    
</html>